//播放详情页面上的
let mysearch=location.search
     console.log(mysearch)

     fetch("http://101.200.226.244:3000/playlist/detail"+mysearch,{
        method:"get",
        mode:"cors" 
     }).then(function(r){
        return r.json()
     }).then(function(data){
         console.log(data)
         let string=""
         string+=
         `

            <div class="playlist_info">
            <div class="left">
                <img src="${data.playlist.coverImgUrl}" alt="">
            </div>
            <div class="right">
                <h3>${data.playlist.name}</h3>
                <div class="youxiang">
                    <img src="${data.playlist.creator.avatarUrl}" alt="">
                </div>
                <p>${data.playlist.creator.nickname}</p>
            </div>
        </div>
        <div class="mask"></div>
        <div class="playlist_bg">
            <img src="${data.playlist.coverImgUrl}" alt="">
        </div>
         
         `
         $("#head_info").innerHTML=string



         let tagString="标签:"
         data.playlist.tags.forEach(value => {
            //  console.log(tagString)
             tagString+=
             `
                <span>${value}</span>
             `
         });
         $(".tags").innerHTML=tagString
         //console.log(tagString)
         $(".intro_info>p").innerHTML=data.playlist.description
         
      
     })


     let a=1;
function aa(){
    console.log(1);
    a++;
    if(a%2==0){
        $(".intro_info").style.height="auto"
        // console.log($(".intro_info>p").style.height="auto");
        
    }else{
        // console.log($(".intro_info>p").style.height="70px");
        $(".intro_info").style.height="70px"
    }
}